package com.xbongbong.schedule.task.actions;

import com.xbongbong.paas.toolbox.wrap.XbbResponse;
import com.xbongbong.schedule.feign.WorkOrderV2TaskActionFeign;
import com.xbongbong.schedule.pojo.dto.ScheduleTaskActionDTO;
import com.xbongbong.schedule.pojo.vo.ScheduleTaskActionVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 工单v2 任务执行服务
 * @author zheng.li
 **/
@Service
public class WorkOrderV2TaskActionExecutor implements TaskActionInterface {

    @Resource
    private WorkOrderV2TaskActionFeign taskActionFeign;


    @Override
    public XbbResponse<ScheduleTaskActionVO> scheduleTaskAction(ScheduleTaskActionDTO scheduleTaskActionDTO, String lang) {
        return taskActionFeign.scheduleTaskAction(scheduleTaskActionDTO,lang);
    }
}
